<template>
  <el-switch
    v-bind="item"
    v-model="model[item.prop]"
    v-on="item.events || {}"
    :clearable="item.clearable === false ? false : true"
  >
  </el-switch>
</template>

<script setup>
const props = defineProps({
  item: Object,
  model: Object
})
</script>
